package com.dao;

import com.model.pojo.Menu;
import com.model.pojo.User;
import com.model.pojo.UserPermissions;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserPermissionsMapper {
    public List<UserPermissions> menuNameOne(@Param("userName") String userName);

   public List<Menu> menuPath(@Param("userName") String userName);
    public List<User> userNames();
    public List<UserPermissions> userPermissionsList(@Param("name") String name);
    public boolean updaPermissions(@Param("name") String name,@Param("menuNameOne") String menuNameOne,@Param("menuNametwo") String menuNametwo);
    public boolean updaNumber(@Param("name") String name);


}
